package loes0;

public class SimulationBeginEvent extends Event {
	private DES01 DES;
	/**
	 * Basic constructor
	 * @param eventTime event time
	 */
	public SimulationBeginEvent(DES01 des, long eventTime) {
		super(eventTime);
		this.DES = des;
	}

	/* (non-Javadoc)
	 * @see simulator.lib.Event#process()
	 */
	@Override
	public void process() {
		System.out.println("BEGIN-"+getTime());
		
		DES.simulator.pushNewEvent(new CustomerArrivalEvent(DES, DES.simulator.getSimTime()/*=0*/+DES.params.interArrivalTime));
	}

}
